The Accordion Pane Component > FAccordionPane.setScrollPosition()

 

FAccordionPane.setScrollPosition()

Availability

Flash Player 6.

Usage

myAccordion_acp.setScrollPosition (position)

Parameters

position A number specifying y-position that the content in the currently selected section should be scrolled to.

Returns


Nothing

Description

This method specifies a number indicating the scroll position of the component. The scroll position is the current Y position of the content within the current section. The scrollbar will only appear if the setScrollBar method has been called and set to true.

 

Example

The following code sets the scroll position to 110, and then traces that position.

myAccordionpane.setScrollPosition(110);
	var pos = myAccordionpane.getScrollPosition();
	trace("Position: "+pos);

See also

FAccordionPane.getScrollPosition()